package com.example;

import com.example.command.Command;

/* The Invoker class */
public class CommunicationServer {

	private Command login;
	private Command logout;
	
	public CommunicationServer(Command login, Command logout){
		this.login = login;
		this.logout = logout;
	}
	
	public void login(){
		this.login.execute();
	}
	
	public void logout(){
		this.logout.execute();
	}
	
}
